Hello all,
I try to have an export to word function that gives me the differences between two baselines. I managed the code to have the old object text and the new one, but I don't know how to export with color the differences. DB db = create "Show diff" DBE textbox = richText(db, "stuff", "", 200, 200, true) Buffer buff1 = create() Buffer buff2 = create() Buffer resBuf = create() buff1 = "Old Text" buff2 = "New Text" diff(resBuf, buff1, buff2, "\\cf1\\strike ", "\\cf3\\ul ") realize db useRTFColour(textbox, true) set(textbox, tempStringOf resBuf) show db this code can display the differences in a textbox but how can i have the same result by using setRichClip function and olemethod (paste) functions in order to get it in in a word document ?
Estebell Estebell - Wed Jun 28 05:11:19 EDT 2017 |
Re: exporting diif buffers with color There is a setRichClipWithColour perm ... Maybe it will help? void setRichClipWithColour (RTF_string__, string, string, bool, bool, bool) I cannot really tell you what the parameters mean. I assume the same as with the normal setRichClip function. Regards, Mathias |